package com.fetnet.smsalarm;

import android.app.Activity;
import android.content.Intent;
import android.media.AudioManager;
import android.os.Bundle;
import android.widget.TextView;

public class NotifyActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
    if(MyService.player1.isPlaying())
       MyService.player1.stop();
    if(MyService.player2.isPlaying())
        MyService.player2.stop();
    if(MyService.player3.isPlaying())
        MyService.player3.stop();
     MainActivity.audio.setStreamVolume(AudioManager.STREAM_MUSIC, TextMessageReceiver.currentVolume, 0);
     TextView txt=new TextView(this); 
     txt.setText(TextMessageReceiver.MsgText);
   
     setContentView(txt);
}
@Override
public void onBackPressed() {
    Intent backtoHome = new Intent(Intent.ACTION_MAIN);
    backtoHome.addCategory(Intent.CATEGORY_HOME);
    backtoHome.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    startActivity(backtoHome);
}
}